home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
335_01
/
as6805.txt
< prev
Wrap
Text File
|
1990-12-02
|
14KB
|
661 lines
- 1 -
A. Appendix_for_as6805_Frankenstein_Assembler
A.1 Pseudo_Operations
A.1.1 Standard_Pseudo_Operation_Mnemonics
End END
File Inclusion INCL INCLUDE
If IF
Else ELSE
End If ENDI
Equate EQU
Set SET
Org ORG
Reserve Memory RESERVE RMB
Define Byte Data BYTE DB FCB
Define Word Data DW FDB WORD
Define String Data FCC STRING
Define Character Set Translation CHARSET
Define Character Value CHARDEF CHD
Use Character Translation CHARUSE
A.1.2 Machine_Dependent_Pseudo_Operations
A.1.2.1 Instruction_Set_Selection
CPU string
The instruction set can be specified in the source file with
the CPU pseudooperation. The string, delimited by quotes or
apostrophes, is scanned for a substring which selects which
instruction set is used. When the program is invoked, this
operation is performed on the name of the program, then the
-p optional arguement, if any, and then any CPU statements.
The last one selects which subset of the instructions the
assembler will accept. The instruction set can be changed
at any place in the source file.
Instruction Set Substrings
68hc05 hc HC
146805 4
6305 3
6805 05 l05 L05
A.2 Instructions
A.2.1 Instruction_List
- 2 -
Opcode Syntax Selection Criteria
ADC '#' expr
ADC expr DIRECT
ADC expr EXTENDED
ADC indexed INDEX0
ADC indexed INDEX1
ADC indexed INDEX2
ADD '#' expr
ADD expr DIRECT
ADD expr EXTENDED
ADD indexed INDEX0
ADD indexed INDEX1
ADD indexed INDEX2
AND '#' expr
AND expr DIRECT
AND expr EXTENDED
AND indexed INDEX0
AND indexed INDEX1
AND indexed INDEX2
ASL expr DIRECT
ASL indexed INDEX0
ASL indexed INDEX1
ASLA
ASLX
ASR expr DIRECT
ASR indexed INDEX0
ASR indexed INDEX1
ASRA
ASRX
BCC expr
BCLR expr ',' expr
BCS expr
BEQ expr
BHCC expr
- 3 -
Opcode Syntax Selection Criteria
BHCS expr
BHI expr
BHS expr
BIH expr
BIL expr
BIT '#' expr
BIT expr DIRECT
BIT expr EXTENDED
BIT indexed INDEX0
BIT indexed INDEX1
BIT indexed INDEX2
BLO expr
BLS expr
BMC expr
BMI expr
BMS expr
BNE expr
BPL expr
BRA expr
BRCLR expr ',' expr ',' expr
BRN expr
BRSET expr ',' expr ',' expr
BSET expr ',' expr
BSR expr
CLC
CLI
- 4 -
Opcode Syntax Selection Criteria
CLR expr DIRECT
CLR indexed INDEX0
CLR indexed INDEX1
CLRA
CLRX
CMP '#' expr
CMP expr DIRECT
CMP expr EXTENDED
CMP indexed INDEX0
CMP indexed INDEX1
CMP indexed INDEX2
COM expr DIRECT
COM indexed INDEX0
COM indexed INDEX1
COMA
COMX
CPX '#' expr
CPX expr DIRECT
CPX expr EXTENDED
CPX indexed INDEX0
CPX indexed INDEX1
CPX indexed INDEX2
DAA INSTDAA
DEC expr DIRECT
DEC indexed INDEX0
DEC indexed INDEX1
DECA
DECX
EOR '#' expr
EOR expr DIRECT
EOR expr EXTENDED
EOR indexed INDEX0
EOR indexed INDEX1
EOR indexed INDEX2
- 5 -
Opcode Syntax Selection Criteria
INC expr DIRECT
INC indexed INDEX0
INC indexed INDEX1
INCA
INCX
JMP expr DIRECT
JMP expr EXTENDED
JMP indexed INDEX0
JMP indexed INDEX1
JMP indexed INDEX2
JSR expr DIRECT
JSR expr EXTENDED
JSR indexed INDEX0
JSR indexed INDEX1
JSR indexed INDEX2
LDA '#' expr
LDA expr DIRECT
LDA expr EXTENDED
LDA indexed INDEX0
LDA indexed INDEX1
LDA indexed INDEX2
LDX '#' expr
LDX expr DIRECT
LDX expr EXTENDED
LDX indexed INDEX0
LDX indexed INDEX1
LDX indexed INDEX2
LSL expr DIRECT
LSL indexed INDEX0
LSL indexed INDEX1
LSLA
LSLX
LSR expr DIRECT
LSR indexed INDEX0
LSR indexed INDEX1
- 6 -
Opcode Syntax Selection Criteria
LSRA
LSRX
MUL INSTMUL
NEG expr DIRECT
NEG indexed INDEX0
NEG indexed INDEX1
NEGA
NEGX
NOP
ORA '#'